home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 4 / QRZ Ham Radio Callsign Database - Volume 4.iso / digests / space / 940238.txt < prev    next >
Internet Message Format  |  1994-11-13  |  6KB

  1. Date: Sat, 27 Aug 94 04:30:18 PDT
  2. From: Ham-Space Mailing List and Newsgroup <ham-space@ucsd.edu>
  3. Errors-To: Ham-Space-Errors@UCSD.Edu
  4. Reply-To: Ham-Space@UCSD.Edu
  5. Precedence: Bulk
  6. Subject: Ham-Space Digest V94 #238
  7. To: Ham-Space
  8.  
  9.  
  10. Ham-Space Digest            Sat, 27 Aug 94       Volume 94 : Issue  238
  11.  
  12. Today's Topics:
  13.                       Converting Grid to Lat-Lon
  14.                       QSL Route for RS-12 Robot
  15.  
  16. Send Replies or notes for publication to: <Ham-Space@UCSD.Edu>
  17. Send subscription requests to: <Ham-Space-REQUEST@UCSD.Edu>
  18. Problems you can't solve otherwise to brian@ucsd.edu.
  19.  
  20. Archives of past issues of the Ham-Space Digest are available 
  21. (by FTP only) from UCSD.Edu in directory "mailarchives/ham-space".
  22.  
  23. We trust that readers are intelligent enough to realize that all text
  24. herein consists of personal comments and does not represent the official
  25. policies or positions of any party.  Your mileage may vary.  So there.
  26. ----------------------------------------------------------------------
  27.  
  28. Date: 25 Aug 1994 13:00:33 -0700
  29. From: nntp.crl.com!crl4.crl.com!not-for-mail@decwrl.dec.com
  30. Subject: Converting Grid to Lat-Lon
  31. To: ham-space@ucsd.edu
  32.  
  33. In article <9408250942.ZM25231@SALCIUS2>,
  34. Wayne_Estes@csg.mot.com (Wayne_Estes) wrote:
  35.  
  36. > I'm looking for a DOS or Windows program that can:
  37. >     A. Convert 6-digit Maidenhead grid  to  Latitude/Longitude.
  38. >     B. Convert Latitude/Longitude  to  6-digit Maidenhead grid.
  39.  
  40. Wayne -
  41.  
  42. The attached Quick BASIC program will perform the functions you
  43. mentioned above.  Sorry, I don't know who was the original author, so
  44. can't give appropriate credits.
  45.  
  46. 73 de Lou / N5SGL
  47.                    --------------------------
  48.  
  49.     'Grid Square <-> latitude/longitude conversion
  50.     '
  51. START:
  52.     CLS : COLOR 0, 7: PRINT "GRID SQUARE LOCATOR": COLOR 7, 0: PRINT
  53.     PRINT "Which do you want to convert FROM?": PRINT
  54.     COLOR 0, 7: PRINT "L"; : COLOR 7, 0: PRINT "at/Lon   ";
  55.     COLOR 0, 7: PRINT "G"; : COLOR 7, 0: PRINT "rid   ";
  56.     COLOR 0, 7: PRINT "Q"; : COLOR 7, 0: PRINT "uit": PRINT
  57.     
  58. RPT1:
  59.     a$ = ""
  60.     DO
  61.         a$ = INKEY$
  62.     LOOP UNTIL a$ <> ""
  63.     IF UCASE$(a$) = "Q" THEN END
  64.     IF UCASE$(a$) = "L" THEN GOTO LL
  65.     IF UCASE$(a$) = "G" THEN GOTO GRID
  66.     GOTO RPT1
  67.     
  68. LL:
  69.     CLEAR : e9 = .000001
  70.     CLS : COLOR 0, 7: PRINT "LAT/LON": COLOR 7, 0: PRINT
  71.     PRINT "Enter SOUTH latitude and EAST longitude as NEGATIVE numbers."
  72.     PRINT
  73.     INPUT "LAT  (DD.MM)"; l
  74.     IF l < -90 OR l > 90 THEN RUN
  75.     INPUT "LON (DDD.MM)"; o
  76.     IF o < -180 OR o > 180 THEN RUN
  77.     os = SGN(o): o = ABS(o): ls = SGN(l): l = ABS(l)
  78.     la = (INT(l) + (l - INT(l)) / .6) * ls
  79.     lo = (INT(o) + (o - INT(o)) / .6) * os
  80.     IF lo < 0 THEN lo = lo + 360
  81.     w3 = 180 - lo: IF w3 < 0 THEN w3 = w3 + 360
  82.     w1 = INT(w3 / 20 + e9)
  83.     w2 = INT((w3 - 20 * w1) / 2 + e9) + 48: w1 = w1 + 65
  84.     w3 = INT(24 * (w3 / 2 - INT(w3 / 2)) + e9) + 65
  85.     l1 = INT((la + 90) / 10 + e9): l2 = INT(la + 90 + e9 - 10 * l1)
  86.     l3 = INT((la + 90 - 10 * l1 - l2) * 24 + e9)
  87.     l1 = l1 + 65: l2 = l2 + 48: l3 = l3 + 65
  88.     g$ = CHR$(w1) + CHR$(l1) + CHR$(w2) + CHR$(l2) + CHR$(w3) + CHR$(l3)
  89.     PRINT : PRINT "Grid square = "; UCASE$(g$)
  90.     LOCATE 24, 1: PRINT "< Press a key to continue >";
  91.     a$ = "": DO: a$ = INKEY$: LOOP UNTIL a$ <> "": GOTO START
  92.     
  93. GRID:
  94.     CLEAR : e9 = .000001
  95.     CLS : COLOR 0, 7: PRINT "GRID SQUARE": COLOR 7, 0: PRINT
  96.     PRINT "Enter 2-, 4-, or 6-character grid square."
  97.     PRINT "Short ones will be optimized to center of square.": PRINT
  98.     INPUT "Grid square"; g$
  99.     g$ = UCASE$(g$)
  100.     l3 = LEN(g$): IF l3 < 2 OR l3 > 6 THEN RUN
  101.     IF l3 = 1 OR l3 = 3 OR l3 = 5 THEN RUN
  102.     SELECT CASE l3
  103.         CASE 2
  104.             g$ = g$ + "55LL"
  105.         CASE 4
  106.             g$ = g$ + "LL"
  107.     END SELECT
  108.     LOCATE CSRLIN - 1, 1: PRINT "Grid square = "; g$; "      "
  109.     RESTORE
  110.     FOR x = 1 TO 6
  111.         READ y$, z$
  112.         t$ = MID$(g$, x, 1): IF t$ < y$ OR t$ > z$ THEN RUN
  113.     NEXT x
  114.     DATA A,R,A,S,0,9,0,9,A,X,A,X
  115.     w1 = ASC(LEFT$(g$, 1)) - 65
  116.     w2 = ASC(MID$(g$, 3, 1)) - 48
  117.     w3 = ASC(MID$(g$, 5, 1)) - 65
  118.     lo = 180 - 20 * w1 - 2 * w2 - w3 / 12 - 1 / 24
  119.     IF lo < 0 THEN lo = lo + 360
  120.     l1 = ASC(MID$(g$, 2, 1)) - 65
  121.     l2 = ASC(MID$(g$, 4, 1)) - 48
  122.     l3 = ASC(RIGHT$(g$, 1)) - 65
  123.     la = -90 + 10 * l1 + l2 + l3 / 24 + 1 / 48
  124.     IF lo > 180 THEN lo = lo - 360
  125.     ls = SGN(la): la = ABS(la)
  126.     l = (INT(la) + INT((la - INT(la)) * 60) / 100) * ls
  127.     os = SGN(lo): lo = ABS(lo)
  128.     o = (INT(lo) + INT((lo - INT(lo)) * 60) / 100) * os
  129.     PRINT
  130.     PRINT "LAT   (DD.MM) ="; l
  131.     PRINT "LON  (DDD.MM) ="; o
  132.     PRINT
  133.     PRINT "(SOUTH latitude and EAST longitude shown as negative numbers.)"
  134.     LOCATE 24, 1: PRINT "< Press a key to continue >";
  135.     a$ = "": DO: a$ = INKEY$: LOOP UNTIL a$ <> ""
  136.     GOTO START
  137.  
  138. ------------------------------
  139.  
  140. Date: 25 Aug 1994 12:45:37 GMT
  141. From: hatch.sonalysts.com!gerheim@uunet.uu.net
  142. Subject: QSL Route for RS-12 Robot
  143. To: ham-space@ucsd.edu
  144.  
  145. Does anyone know the QSL route for the RS-12 robot?  I worked it a few
  146. weeks ago, and don't recall the route.  TNX,
  147.  
  148. --
  149. ***********************************************************************
  150. Al Gerheim                                              Sonalysts, Inc.
  151. Email: gerheim@sonalysts.com                         215 Parkway North
  152. Work: (203)442-4355                                 Waterford CT 06385
  153. ***********************************************************************
  154.  
  155. ------------------------------
  156.  
  157. End of Ham-Space Digest V94 #238
  158. ******************************
  159.